package cn.edu.neu.studentmsg_java.service.impl;

import cn.edu.neu.studentmsg_java.dao.ClassesDao;
import cn.edu.neu.studentmsg_java.model.Classes;
import cn.edu.neu.studentmsg_java.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ClassesServiceImpl implements ClassesService {
    @Autowired
    private ClassesDao classesDao;
    @Override
    public List<Integer> findClassId() {
        return classesDao.selectClassId();
    }

    @Override
    public List<Classes> findClassIdAndMajorName() {
        return classesDao.selectClassIdAndMajorName();
    }
}
